﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Model.DocumentDB
{
    /// <summary>Represents a query result with its line number.</summary>
    public class QueryResultViewModel
    {
        /// <summary>Constructor.</summary>
        /// <param name="lineNumber"></param>
        /// <param name="result"></param>
        public QueryResultViewModel(int lineNumber, string result)
        {
            LineNumber = lineNumber;
            Result = result;
        }

        /// <summary>Line number of the result.</summary>
        public int LineNumber { get; private set; }

        /// <summary>Actual result of the query (in JSON).</summary>
        public string Result { get; private set; }
    }
}